﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace RN.ERP.DTO
{
    public class PayInfo
    {
        public Int32 ID { get; set; }
        public Guid KeyGUID { get; set; }
        public String iTitle { get; set; }
        public Guid CorpUserGuid { get; set; }
        public String AreaCode { get; set; }
        public String LinkPerson { get; set; }
        public String SendAddress { get; set; }
        public String officeTel { get; set; }
        public String mobileTel { get; set; }
        public String postCode { get; set; }
        public String payResult { get; set; }
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? RegisterDate { get; set; }
        public Byte bPayStatus { get; set; }
        public Int32? RightCode { get; set; }
        public String Code { get; set; }
        public Double? SumPay { get; set; }
        public String FlowCode { get; set; }
        public String ZipCode { get; set; }
        public Int32? bCorpKind { get; set; }
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? TransDate { get; set; }
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? OptDate { get; set; }
        public Boolean? IsDel { get; set; }
        public String Notice { get; set; }
        public String StrStatus
        {
            get
            {
                switch (this.bPayStatus.ToString())
                {
                    case "0":
                        return "添加订单";
                    case "1":
                        return "提交订单";
                    case "2":
                        return "线下支付";
                    case "3":
                        return "银联支付";
                    case "4":
                        return "支付确认";
                    default:
                        return "";
                }
            }
        }
        public String GroupCode { get; set; }
        public String CurrentAreaCode { get; set; }
        public Int32? AppID { get; set; }
        public List<PayInfoSub> PayInfoSub { get; set; }
    }
}
